<?php

namespace Home\Model;

class StuffModel extends Model
{
    public function saveOne($data)
    {
        if ($this->find($data['id'])) {
            return $this->save($data);
        } else {
            return $this->add($data);
        }
    }
}
